Skip to content

feat: bring SDK current with the live API - #3

Merged
jlazar merged 1 commit into
mainfrom
feat/api-parity-2026-10-29
Oct 29, 2026
Merged

jlazar merged 1 commit into
mainfrom
feat/api-parity-2026-10-29

Conversation

@jlazar

@jlazar jlazar commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Brings the SDK current with the live API (https://api.racehooks.io/openapi.json) and the Node SDK / MCP surface.

Bugs fixed (broken against the live API)

  • webhooks.get() / update() read data.webhook; the API returns data.endpoint. They now return a WebhookEndpoint.
  • webhooks.list() now sends shape=flat (the server default is grouped). list_endpoints() is the grouped view.

Added

  • Webhooks: create(feed_ids=..., subscriptions=..., series_id=...), add_feeds, update_feed, remove_feed, list_endpoints, deliveries.
  • Webhook verification: X-RaceHooks-Signature-V1 (signature_v1=, require_v1, sign_payload_v1). The tolerance check applies to the signed send time. The legacy signature still works.
  • rh.stream() for SSE, feeds.example, fantasy.get_prices, events.list(season=, order=).
  • Namespaces returning the decoded data JSON: data (27 endpoints), historical (32), indycar, insights, telemetry, models, lines, analytics, preview, strategy, usage (usage, subscription, billing plan and tiers).

Docs / metadata

  • Description, keywords, README and AGENTS.md use the approved positioning. "live timing" and the F1 keywords are removed; the trademark disclaimer stays. AGENTS.md's stale publish note is corrected.

Left out: auth/console/clients/billing-checkout (account management), internal/admin routes, billing/webhook. These are not part of the data API.

Tests run: pytest 96 passed (new tests/test_surface.py); CI lint steps (ruff check/format on grpc, mypy grpc client) clean; mypy on the new modules clean. A feat: commit bumps the minor version on merge.

Fix webhooks.get/update (API returns data.endpoint, not data.webhook) and
webhooks.list (now sends shape=flat). Add multi-feed webhook endpoints
(feed_ids, subscriptions, add_feeds, update_feed, remove_feed, list_endpoints,
deliveries), X-RaceHooks-Signature-V1 verification with signed-timestamp replay
protection, SSE stream(), feeds.example, fantasy.get_prices, events season/order,
and data, historical, indycar, insights, telemetry, models, lines, analytics,
preview, strategy and usage namespaces. Update description, keywords and docs
to the approved positioning.
@jlazar
jlazar force-pushed the feat/api-parity-2026-10-29 branch from 9672d82 to 923c5e3 Compare October 29, 2026 16:58
@jlazar
jlazar merged commit bd4b34c into main Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant